/**
 * 路由配置
 */

var routes = exports = module.exports = {};


routes.config = function ($stateProvider, $locationProvider, $urlRouterProvider) {
    //html5路由特性
    $locationProvider.html5Mode(false);
    //默认加载页
    $urlRouterProvider.otherwise('/DragView');

    $stateProvider.state('VPCBox',{
        url: '/VPCBox',
        title: 'VPCBox',
        templateUrl: 'VPCBox/VPCBox.html'
    })
    .state('VPCView',{
        url: '/VPCView',
        title: 'VPCView',
        templateUrl: 'VPCView/VPCView.html'
    })
    .state('createCloud',{
        url: '/createCloud',
        title: 'createCloud',
        templateUrl: 'CreateCloud/createCloud.html'
    })
    .state('DataView',{
        url: '/DataView',
        title: 'DataView',
        templateUrl: 'DataView/DataView.html'
    })
    .state('ChartView',{
        url: '/ChartView',
        title: 'ChartView',
        templateUrl: 'ChartView/ChartView.html'
    })
    .state('DragView',{
        url: '/DragView',
        title: 'DragView',
        templateUrl: 'DragBox/dragview.html'
    });
}
